// components/profile/overview-card/overview-card.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    title: {
      type: String,
      value: '学习概览'
    },
    totalWordsLearned: {
      type: Number,
      value: 0,
      observer: function(newVal) {
        // 属性值变化时的处理逻辑
        this.setData({ totalWordsLearned: newVal });
      }
    },
    learningDays: {
      type: Number,
      value: 0,
      observer: function(newVal) {
        this.setData({ learningDays: newVal });
      }
    },
    completionRate: {
      type: Number,
      value: 0,
      observer: function(newVal) {
        this.setData({ completionRate: newVal });
      }
    }
  },

  /**
   * 组件的初始数据
   */
  data: {},

  /**
   * 组件的方法列表
   */
  methods: {}
})